<template>
	<view class="page page-fill">
		<view class="boxs" style="margin-top: 40rpx;">
			<view class="big-box">
				<p>账号与安全</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
			
			<view class="big-box">
				<p>支付设置</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
		
		</view>
		
		<view class="boxs">
			<view class="big-box">
				<p>长辈设置</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
			
			<view class="big-box">
				<p>新消息通知</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
			
			<view class="big-box">
				<p>功能管理</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
			
			<view class="big-box">
				<p>隐私</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
			
			<view class="big-box">
				<p>通用</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
			
		</view>
		
		<view class="boxs">
			<view class="big-box">
				<p>求助反馈</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
			
			<view class="big-box">
				<p>关于</p>
				<view class="img-box">
					<image src="../../static/informationSetting/rightArrow.svg" class="img-box-img"></image>
				</view>
			</view>
		</view>
		
		<view class="footer-wapper">
			<view class="footer-words" @click="clearStorage">
				清理缓存
			</view>
			<view class="footer-words" @click="loginOut">
				退出登录
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		methods:{
			// 清理缓冲
			clearStorage() {
				uni.clearStorageSync()
				uni.showToast({
					title: '清理缓存成功',
					mask: false,
					duration: 1500
				})
			},
			
			// 退出登录
			loginOut() {
				let globalUser = this.$getGlobalUser()
				console.log(globalUser, 'globalUser');
				// 后台用户方法
				// uni.removeStorageSync("globalUser")
				uni.switchTab({
					url: "../me/me"
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
@import "./informationSetting.scss";
</style>
